import {   http } from '@/utils/http'


export const loginByPwd = (data?:Recordable) => {
  return http({
    method: 'POST',
    url: 'login/wechat',
    data,
  })
}
// 配置信息
export const confInfo = (data?:Recordable) => {
  return http({
    method: 'GET',
    url: 'setting/center',
    data,
  })
}
// 轮播图
export const bannerList = (data?:Recordable) => {
  return http({
    method: 'GET',
    url: 'h5/carousel',
    data,
  })
}
// 公告
export const noticeList = (data?:Recordable) => {
  return http({
    method: 'GET',
    url: 'h5/notice',
    data,
  })
}
// 商品列表
export const goodsList = (data?:Recordable) => {
  return http({
    method: 'GET',
    url: 'goods/list',
    data,
  })
}
// 分类
export const goodsCate = (data?:Recordable) => {
  return http({
    method: 'GET',
    url: 'goods/class',
    data,
  })
} 

// 商品详情
export const goodsInfo = (data?:Recordable) => {
  return http({
    method: 'GET',
    url: 'goods',
    data,
  })
}
